package cn.monkey.transport.netty.client;

import cn.monkey.transport.netty.TransportConfig;
import io.netty.bootstrap.Bootstrap;
import io.netty.channel.Channel;
import io.netty.channel.socket.nio.NioSocketChannel;

public class ClientTransportConfig extends TransportConfig<Bootstrap, ClientTransportConfig, ClientTransportConfig.Builder, Channel> {


    public class Builder extends TransportConfig<Bootstrap, ClientTransportConfig, Builder, Channel>.Builder {
        public Builder(ClientTransportConfig instance) {
            super(instance);
        }
    }

    public ClientTransportConfig() {
        super();
        this.mutate()
                .channelClass(NioSocketChannel.class)
                .build();
    }

    @Override
    public Builder mutate() {
        return new Builder(this);
    }
}
